<?php

// Si le fichier de qui dÔøΩfinie les constantes n'a pas encore ÔøΩtÔøΩ appelÔøΩ on le charge
if (!defined('CONFIGURATION_FILE_LOADED'))
    include( 'includes/configuration_include.php');


include( PATH_VIEWS . 'news_view.php');
include( PATH_MODELS . 'news_model.php');


$bdd = model_db_connexion();

$req = model_news($bdd);

while ($donnees = $req->fetch(PDO::FETCH_ASSOC)) {
    $new_description = $donnees['new_description'];
    $new_id = $donnees['id_new'];
    $new_name = $donnees['new_name'];
    $type_img = $donnees['img_type'];
     $heure = $donnees['heure'];
if( $type_img==0)
{
     print_video($new_description, $new_name, $type_img, $new_id, $heure);}
    elseif( $type_img==1)
    {
printNews($new_description, $new_name, $type_img, $new_id, $heure);}
}

?>



<?php

?>
